<div class="widget">
    <h3>标签</h3>
    <div class="widget-content">
        <?php $this->widget('Widget_Metas_Tag_Cloud', 'sort=count&ignoreZeroCount=1&desc=1&limit=10')->to($tags); ?>
        <?php if($tags->have()): ?>
        <ul class="tag-link tag-list">
            <?php while ($tags->next()): ?>
                <li>
                    <a href="<?php $tags->permalink(); ?>"
                        rel="tag"
                        class="size-<?php $tags->split(5, 10, 20, 30); ?>"
                        title="<?php $tags->name(); ?>">
                        <?php $tags->name(); ?>
                        <span class="badge"><?php $tags->count(); ?></span>
                    </a>
                </li>
            <?php endwhile; ?>
            <?php else: ?>
                <li><?php _e('没有任何标签'); ?></li>
            <?php endif; ?>
        </ul>
    </div>
</div>